package shapeCalculate;

import java.util.List;

public class ShapeCalculator {
    // 输出图形类型、面积、周长
    public static void printShapeInfo(Shape shape) {
        System.out.println("图形类型：" + shape.calculateType());
        System.out.println("面积：" + shape.calculateArea());
        System.out.println("周长：" + shape.calculatePerimeter());
        System.out.println("---------------------");
    }

}